﻿using Microsoft.EntityFrameworkCore.Migrations;

#nullable disable

namespace SMARTHOTEL.Migrations
{
    public partial class 订单 : Migration
    {
        protected override void Up(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.AddColumn<string>(
                name: "IDNumber",
                table: "StayRecords",
                type: "nvarchar(max)",
                nullable: true);

            migrationBuilder.AddColumn<int>(
                name: "IDNumberType",
                table: "StayRecords",
                type: "int",
                nullable: false,
                defaultValue: 0);

            migrationBuilder.AlterColumn<int>(
                name: "IsNoCot",
                table: "AppRoomType",
                type: "int",
                nullable: false,
                oldClrType: typeof(bool),
                oldType: "bit");
        }

        protected override void Down(MigrationBuilder migrationBuilder)
        {
            migrationBuilder.DropColumn(
                name: "IDNumber",
                table: "StayRecords");

            migrationBuilder.DropColumn(
                name: "IDNumberType",
                table: "StayRecords");

            migrationBuilder.AlterColumn<bool>(
                name: "IsNoCot",
                table: "AppRoomType",
                type: "bit",
                nullable: false,
                oldClrType: typeof(int),
                oldType: "int");
        }
    }
}
